package cn.remex.core.util.email;

import java.util.Properties;

/**
 * Created by guoqi on 2016/10/30.
 */
public class EmailSetings {
    private String emailHost;//邮件服务器
    private String emailUserName;//用户名
    private String emailPassword;//用户密码
    private boolean emailSmtpAuth = true; //验证
    private int emailSmtpTimeout = 25000; //超时
    private boolean emailSmtpStarttls = true; //默认true
    private String emailEncode = "UTF-8"; //默认true

    public EmailSetings(String emailHost, String emailUserName, String emailPassword) {
        this.emailHost = emailHost;
        this.emailUserName = emailUserName;
        this.emailPassword = emailPassword;
    }

    public EmailSetings() {
    }

    public String getEmailHost() {
        return emailHost;
    }

    public void setEmailHost(String emailHost) {
        this.emailHost = emailHost;
    }

    public String getEmailUserName() {
        return emailUserName;
    }

    public void setEmailUserName(String emailUserName) {
        this.emailUserName = emailUserName;
    }

    public String getEmailPassword() {
        return emailPassword;
    }

    public void setEmailPassword(String emailPassword) {
        this.emailPassword = emailPassword;
    }

    public boolean isEmailSmtpAuth() {
        return emailSmtpAuth;
    }

    public void setEmailSmtpAuth(boolean emailSmtpAuth) {
        this.emailSmtpAuth = emailSmtpAuth;
    }

    public int getEmailSmtpTimeout() {
        return emailSmtpTimeout;
    }

    public void setEmailSmtpTimeout(int emailSmtpTimeout) {
        this.emailSmtpTimeout = emailSmtpTimeout;
    }

    public boolean isEmailSmtpStarttls() {
        return emailSmtpStarttls;
    }

    public void setEmailSmtpStarttls(boolean emailSmtpStarttls) {
        this.emailSmtpStarttls = emailSmtpStarttls;
    }

    public String getEmailEncode() {
        return emailEncode;
    }

    public void setEmailEncode(String emailEncode) {
        this.emailEncode = emailEncode;
    }
}
